import { bus } from "/utils/core";
const app = getApp();

Page({
  data: {
    domain: app.globalData.omsDomain
  },
  onLoad(query) {
    this.setData({
      key: query.key,
      accept: query.accept,
      max: query.max ? +query.max : 999
    });
    this.webViewContext = dd.createWebViewContext('web-view-1');
  },
  onReceiveData(e) {
    dd.navigateBack();
    bus.publish(this.data.key, e.detail.files.filter(item => item.status === 'done'));
  }
});

